﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SCS.Common.Models;
using SCS.Common;
namespace SCS.DAL
{
    public interface IPrivateMessageRepository:IRepository<PrivateMessage>
    {
        IPagedList<PrivateMessage> GetPagedSentMessagesByUser(int pageIndex, int pageSize, MembershipUser user);
        IPagedList<PrivateMessage> GetPagedReceivedMessagesByUser(int pageIndex, int pageSize, MembershipUser user);
        PrivateMessage GetLastSentPrivateMessage(int Id);
        int GetLastReceiceID(string userName);
        IList<PrivateMessage> GetAllSentByUser(int Id);
        IList<PrivateMessage> GetAllReceivedByUser(int Id);
        IList<PrivateMessage> GetAllByUserToAnotherUser(int senderId, int receiverId);
        int NewPrivateMessageCount(string userName);
    }
}
